/**
 * 
 */
package tr.edu.metu.is.mega.server.dao;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * @author Ekrem
 * 
 */
public class DatabaseConnectionFactory {

    public static Connection getConnection() {
        try {
            Class.forName("org.postgresql.Driver");
            return DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5432/mega", "megauser", "megauser");
        } catch (Exception ex) {
            throw new RuntimeException(ex);
        }
    }
}
